<template>
  <div>
    <page-list :x-uri="uri" :custom-components="custom" :doactions="doactions" :checkbox-item="false">
      <!-- 自定义tab -->
      <template v-slot:page-tabs>
        <tabs />
      </template>
    </page-list>
  </div>
</template>

<script>
import PageList from '@public/template/page_list.vue';
import Title from './components/title.vue';
import Tabs from '../tabs';
export default {
  components: {
    PageList,
    Tabs
  },
  inject: ['reload'],
  data() {
    return {
      uri: '/school/admin/waiting',
      doactions: [{ title: '审核', meta: { permission: 'school.examine.handle' }, callback: this.waiting }],
      custom: {
        title: Title
      }
    };
  },
  methods: {
    waiting: function({ row }) {
      this.$router.push({ path: '/school/waiting/' + row.id + '/examine' });
    }
  }
};
</script>
